package Operations;


public class StringGenerator {


  public String newString(float nullProb) {
    if (ValuesGenerator.getBoleean(nullProb)) 
    	return null;
    return newString();
  }

  public String newString() {
    String s = "";
    int addMoreChars = ValuesGenerator.getRandomInt(100);
    while (addMoreChars < 60) {
      s +=  characterGenerator.getCharacter();
      addMoreChars = ValuesGenerator.getRandomInt(100);;
    }
    return s;
  }


  public static void main(String args[]) {
	  ValuesGenerator.resetSeed(10);

    StringGenerator gen = new StringGenerator();
    while(true)
      System.out.println(gen.newString(0.05f));
    
  }
}


